package com.yz.house.ui.adaper;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yz.house.R;
import com.yz.house.model.AboutProductsBean;
import com.yz.house.model.ContentBean;

import java.util.List;

/**
 * Demo
 *
 * @author zhangyf
 * @date 2018/4/12 0012.
 */
public class AboutProductsAdapter extends BaseQuickAdapter<AboutProductsBean,BaseViewHolder>{

    public AboutProductsAdapter(@Nullable List<AboutProductsBean> data) {
        super(R.layout.item_about_products,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AboutProductsBean item) {
        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_price,item.getPrice());
        helper.setImageResource(R.id.iv_img,item.getImg());
    }
}
